﻿@{
    ViewBag.Title = "Contact";
}


@using (Html.BeginForm("Contact", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <input type="file" id="file" name="file" multiple="multiple" />

    <input type="submit" value="Upload" />

}

@section scripts{
    <script src="~/Scripts/jquery-3.4.1.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script>
        $(function () {
            $(function () {
                $.ajax({
                    url: '/Home/Jichengfed',
                    type: 'POST',
                    data: { "stste": 1 },
                    success: function (a) {
                        var hu = "";
                        console.log(a)
                        for (var i = 0; i < a.length; i++) {
                            hu += a[i].FName + "\t" + a[i].FIsGroupa + "\t" + a[i].FNumber + "\t" + a[i].FCustTypeId + "\t" + a[i].FIsTrade + "\t" + a[i].FRegisterAddress + "\t" + a[i].FNaFIsDefaultConsigneeme + "\t" + a[i].FDescription + "\t" + a[i].FCompanyClassify + "\t" + a[i].FWEBSITE + "\t" + a[i].FForbidStatus + "\n"
                        }
                        $("#fghjkl").val(hu)
                    }, error: function () {

                    }
                })
            })
        })
        document.getElementById('file').addEventListener('change', function (e) {
            var files = e.target.files; // 获取选中的文件列表  
            // 在这里处理文件选择逻辑，例如上传文件等  
        });
    </script>
}
